# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-mail-sendmail
pkgver=0.80
pkgrel=1
pkgdesc="Perl/CPAN Module Mail::Sendmail : Simple platform independent mailer"
arch=("any")
url="https://search.cpan.org/~mivkovic/Mail-Sendmail/"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/N/NE/NEILB/Mail-Sendmail-$pkgver.tar.gz")
sha256sums=('5b8a98cb5cc39d80441a38aab010885ddf80e6fcd8e6e0314392cb23e7c268e4')

build() {
  cd "$srcdir"/Mail-Sendmail-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Mail-Sendmail-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
